package login;

import dbConnection.DbManage;

public class EmployerLoginBean
{
    private String username;
    private String password;
    public String getUsername()
    {
	return username;
    }
    public void setUsername(String username)
    {
	this.username = username;
	System.out.println(username + "'e set ettim");
    }
    public String getPassword()
    {
	return password;
    }
    public void setPassword(String password)
    {
	this.password = password;
	System.out.println(password + "'e set ettim");
    }
    public String isRegistered()
    {
	System.out.println(username + "'e set ettim");
	System.out.println(password + "'e set ettim");
	DbManage dbManage = new DbManage();
	if (dbManage.isRegisteredEmployer(username, password))
	{
	    return "EmployerMainPage.xhtml";
	}
	else
	{
	    return "MainPage.xhtml";
	}
    }
}
